﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Runda.CMS.Dal;
using System.Data;

namespace Runda.CMS.Bll
{
    public class DataSynchroBll
    {
        public void SynchroInstrument()
        {
            CtrtInstrumentDal dal = new CtrtInstrumentDal();
            dal.SynchroInstrument();
        }
        public void SynchroBill()
        {
            CtrtBillDal dal = new CtrtBillDal();
            dal.SynchroBill();
        }

        public void SynchroCustomer()
        {
            CtrtCustomerDal dal = new CtrtCustomerDal();
            dal.SynchroCustomer();
        }

        public void genData()
        {
            WsmMaintainBillDal dal = new WsmMaintainBillDal();
            dal.genData();
        }

        public DataTable QueryCustomerlist(string WhereClause, string OrderBy, int PageSize, int PageIndex, out int RecordCount)
        {
            return new CtrtCustomerDal().GetCustomerList(WhereClause, OrderBy, PageSize, PageIndex, out RecordCount);
        }

        public DataTable ExportCustomerList(string WhereClause, string Orderby)
        {
            return new CtrtCustomerDal().GetCustomerList_export(WhereClause, Orderby);
        }
    }
}
